home *** CD-ROM | disk | FTP | other *** search
/ L' Effet Pommier 3 / L'Effet Pommier - Volume 03.iso / Utilitaires System / HyperCard Player2.3.1 / M. à J. HyperCard 2.3.1 / Mise à jour HyperCard F1-2.3.1 / Mise ‡ jour HyperCard F1-2.3.1 / stack_-1.xml < prev   
Extensible Markup Language  |  1995-09-20  |  6KB  |  20 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
  3. <stack>
  4.     <name>in.1</name>
  5.     <id>-1</id>
  6.     <cardCount>1</cardCount>
  7.     <cardID>2880</cardID>
  8.     <listID>2218</listID>
  9.     <cantModify><false /></cantModify>
  10.     <cantDelete><false /></cantDelete>
  11.     <cantAbort><false /></cantAbort>
  12.     <cardSize>
  13.         <width>416</width>
  14.         <height>240</height>
  15.     </cardSize>
  16.     <script>Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧HyperCard 2.3 UpdateTuesday, September 12, 1995┬⌐Copyright 1987-1991,1993-1995 by Apple Computer,Inc.All Rights Reserved.THE MESSAGE HANDLERS USED IN THIS SCRIPT:openStack, closeStack, checkVersion, updateFrench_HyperCard_2_3,resourceError, listResources, startUsingStack, stopUsingStackTHE FUNCTION HANDLERS USED IN THIS SCRIPT:getStackPathName, theResType, theResID, theResName, lastHCItemXCMD's USED BY THIS SCRIPT:ResRemove XCMDform: ResRemove pathname, ResType, res IDdeletes a resource from stack <pathname>CopyRes XCMDform: CopyRes ResType, res ID, source pathname, destination pathnamecopies a resource from "source" to "destination" -- ΓêåThe resource will be renumbered if a resource of the same ResTypeand ID already exists.XFCN's USED BY THIS SCRIPT:Resources XFCNform: Resources([<pathname>])returns a return-delimited list of all resources in a file in the form:ResType, res ID, res size, res nameIf the <pathname> parameter is omitted, the resources in the currentstack are listed.Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧Γê₧on openStackglobal oldUserLevel-- checkVersionput the userlevel into oldUserLevel-- set the userlevel to 2end openStackon closeStackglobal oldUserLevelset the userlevel to oldUserLevelend closeStackon checkVersionif the version < 2.3 thenanswer "Cette mise ├á jour requiert HyperCard 2.3." -- Γêådomenu "Quitter HyperCard" -- Γêåend ifend checkVersionon updateFrench_HyperCard_2_3put empty into cd fld "Stack Resources List" -- Γêåput getStackPathName() into stackWithUpdates-- Prompt user for the Color Tools 2.3 stackanswer file "Localisez lΓÇÖapplication HyperCard F1-2.3." of type "APPL" -- Γêåif the result is "Cancel" then exit to hyperCard -- Γêåif it is not empty then put it into stackToUpdate-- get a list of the resources in this stacklistResources stackToUpdate-- loop through card field containing names of resources to be updated / addedrepeat with lineNum = 1 to number of lines in cd field "French HyperCard Update List" -- Γêåset the cursor to busyput theResType ( line lineNum of cd fld "French HyperCard Update List") into resType -- Γêåput theResID ( line lineNum of cd fld "French HyperCard Update List") into resID -- Γêå-- check to see if the resource already exists in the stack-- remove it if it does already existif line lineNum of cd fld "French HyperCard Update List" is in cd fld "Stack Resources List" then -- ΓêåResRemove stackToUpdate, resType, resIDif the result is not empty thenput the result into errorMsgresourceError "suppression", stackToUpDate, errorMsg -- Γêåend ifend if-- install new or replacement resource into stackCopyRes resType, resID, stackWithUpdates, stackToUpdateif the result <> resID thenput the result into errorMsgresourceError "copie", stackToUpdate, errorMsg -- Γêåend ifend repeat-- stopUsingStack stackToUpdateanswer "Votre application HyperCard F1-2.3 a ├⌐t├⌐ mise ├á jour en version F1-2.3.1." -- Γêådomenu "Quitter HyperCard" -- Γêåend updateFrench_HyperCard_2_3-- Utility handlers used in this stackon resourceError activity, stackToUpdate, errorMsgif activity = "suppression" then -- Γêåanswer "Une erreur est survenue en supprimant certaines ressources de la pile." && quote &┬¼ -- ΓêålastHCItem ( colon, stackToUpdate ) & quote & return & return & "Le message dΓÇÖerreur est" &&┬¼ -- Γêåquote & errorMsg & quote -- Γêåelse if activity = "copying" then -- Γêåanswer "Une erreur est survenue en copiant certaines ressources dans la pile." && quote &┬¼ -- ΓêålastHCItem ( colon, stackToUpdate ) & quote & return & return & "Le message dΓÇÖerreur est" &&┬¼ -- Γêåquote & errorMsg & quote -- Γêåend ifexit to HyperCardend resourceErroron listResources stackName-- startUsingStack stackNameget resources( stackName )sort it-- delete the resource size field as it is not necessary and inhibits-- removal and copying of Editor Resourcerepeat with lineNum = 1 to number of lines in itset the cursor to busydelete word 3 of line lineNum of itend repeatput it into cd fld "Stack Resources List" -- Γêåend listResourceson startUsingStack stackNamestart using stack stackNameend startUsingStackon stopUsingStack stackNamestop using stack stackNameend stopUsingStackon ul5set the userlevel to 5put the userlevelend ul5-- utility functions used in this stackfunction getStackPathNameput the long name of this stack into stackWithUpdatesdelete the first word of stackWithUpdatesdelete the first char of stackWithUpdatesdelete the last char of stackWithUpdatesreturn stackWithUpdatesend getStackPathNamefunction theResType resInfo-- return the resource type of the resourcereturn char 1 to 4 of resInfoend theResTypefunction theResID resInfo-- return the ID of the resourceget length of resInforeturn word 1 of (char 6 to it of resInfo)end theResIDfunction theResName resInfo-- return the name of the resourcereturn word 3 to the number of words in resInfo of resInfoend theResNamefunction lastHCItem delim,theText-- returns the portion of <theText> that follows the last <delim>if delim is in theText thenput lastHCItem(delim,char offset(delim,theText) + 1 to ┬¼length(theText) of theText) into theTextend ifreturn theTextend lastHCItem</script>
  17.     <background id="2687" file="background_2687.xml" name="" />
  18.     <card id="2880" file="card_2880.xml" marked="false" name="" owner="2687" />
  19. </stack>
  20.